﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_Admin.Master" AutoEventWireup="true" CodeBehind="ManageTaxonomyName.aspx.cs" Inherits="BaopxFramework.Admin.ManageTaxonomy.ManageTaxonomyName" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DataGrid runat="server" ID="grd" AutoGenerateColumns="False"  ShowFooter="True"
        BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" GridLines="Vertical" onitemcommand="grd_ItemCommand">
        <AlternatingItemStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:TemplateColumn>
                <HeaderTemplate>Id</HeaderTemplate>
                <ItemTemplate><asp:literal text='<%#Eval("Id") %>' ID="litId" runat="server" /></ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn>
                <HeaderTemplate>Name</HeaderTemplate>
                <ItemTemplate><asp:TextBox runat="server" ID="txtName" Text='<%#Eval("Name") %>' Width="300px" /></ItemTemplate>
                <FooterTemplate><asp:TextBox runat="server" ID="txtName" Width="300px" /></FooterTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn>
                <HeaderTemplate>Active</HeaderTemplate>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <FooterStyle HorizontalAlign="Center"></FooterStyle>
                <ItemTemplate><asp:CheckBox runat="server" ID="chkActive" Checked='<%#Eval("Active") %>' /></ItemTemplate>
                <FooterTemplate><asp:CheckBox runat="server" ID="chkActive" /></FooterTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn>
                <HeaderTemplate>IsUseForPost</HeaderTemplate>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <FooterStyle HorizontalAlign="Center"></FooterStyle>
                <ItemTemplate><asp:CheckBox runat="server" ID="chkIsUseForPost" Checked='<%#Eval("IsUseForPost") %>' /></ItemTemplate>
                <FooterTemplate><asp:CheckBox runat="server" ID="chkIsUseForPost" /></FooterTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn>
                <HeaderTemplate>IsUseForProduct</HeaderTemplate>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <FooterStyle HorizontalAlign="Center"></FooterStyle>
                <ItemTemplate><asp:CheckBox runat="server" ID="chkIsUseForProduct" Checked='<%#Eval("IsUseForProduct") %>' /></ItemTemplate>
                <FooterTemplate><asp:CheckBox runat="server" ID="chkIsUseForProduct" /></FooterTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn>
                <ItemTemplate>
                    <asp:ImageButton runat="server" ID="btnUpdate" ImageUrl="/Images/Admin/Icon/delete.gif" CommandName="cmdUpdate" CommandArgument='<%#Eval("Id") %>'/>
                    <asp:ImageButton runat="server" ID="btnDelete" ImageUrl="/Images/Admin/Icon/delete.gif" CommandName="cmdDelete" CommandArgument='<%#Eval("Id") %>'/>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:ImageButton runat="server" ID="btnAddNew" ImageUrl="/Images/Admin/Icon/delete.gif" CommandName="cmdAddNew"/>
                </FooterTemplate>
            </asp:TemplateColumn>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <ItemStyle BackColor="#EEEEEE" ForeColor="Black" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" 
            Mode="NumericPages" />
        <SelectedItemStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
    </asp:DataGrid>
</asp:Content>
